package com.plan.car.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@ApiModel(value = "用户登录的表单对象",description = "用户登录的表单对象")
@Data
public class LoginDTO {
    @ApiModelProperty(value = "账号",required = true,example = "admin")
    private String username;

    @ApiModelProperty(value = "密码",required = true,example = "Hndx@2024")
    @NotEmpty(message = "密码不为空")
    private String password;
}
